/* 多类型约束接口 */
var Demo = /** @class */ (function () {
    function Demo(ab) {
        this.ab = ab;
    }
    /*多类型约束*/
    Demo.prototype.getT = function () {
        this.ab.getAge();
        this.ab.getName();
    };
    return Demo;
}());
var Test = /** @class */ (function () {
    function Test() {
    }
    Test.prototype.getAge = function () {
        console.log('Test中的getAge');
        return 0;
    };
    Test.prototype.getName = function () {
        console.log('Test中的getName');
        return "";
    };
    return Test;
}());
var test = new Test();
var demo = new Demo(test);
demo.getT();
